package com.jeesite.modules.dataScreen.dao;

import cn.hutool.core.date.DateTime;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeesite.modules.dataScreen.domain.monitoring.MonitoringDetailVo;
import com.jeesite.modules.dataScreen.domain.monitoring.MonitoringSimple;
import com.jeesite.modules.dataScreen.domain.monitoring.PublicOpinionMonitoring;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS("duty_db")
public interface MonitoringDao extends BaseMapper<PublicOpinionMonitoring> {
    List<MonitoringSimple> getMonitoringSimpleList(@Param("startTime") DateTime dateTime, @Param("endTime") DateTime dateTime1,
                                                   @Param("classifyNames") String[] classifyName);

    List<JSONObject> getItemCountMap(@Param("startTime") DateTime dateTime, @Param("endTime") DateTime dateTime1);

    MonitoringDetailVo getOneById(@Param("id") String id);
}
